package tests.context;


import javax.annotation.Resource;
import java.util.UUID;

@Resource(name = "setTable")
public class Model implements AutoCloseable {
    public String id;
    public String name;

    public Model() {
        id = UUID.randomUUID().toString();
        name = UUID.randomUUID().toString();
    }

    @Override
    public void close() {
        System.out.println("closed = " + this);
    }
}
